package day2_linkedlist.mylink;

/**
 * @Author: yuisama
 * @Date: 2021/8/29 16:57
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        int i = factor(5);
        System.out.println(i);
    }

    public static int factor(int n) {
        if (n == 1) {
            return 1;
        }
        int ret = n * factor( n - 1);
        return ret;
    }
}
